package com.demos.springcloud.consumer03HystrixFallback.service.fallbackImp;

import com.demos.springcloud.consumer03HystrixFallback.service.InterfaceFallbackService;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.Map;

@Component
public class InterfaceFallbackServiceImp implements InterfaceFallbackService {
    @Override
    public Map<String, Object> expPost(String id) {
        return Collections.singletonMap("result", "接口方法回退");
    }

    @Override
    public String expGetTO() {
        return "接口方法回退";
    }
}
